package com.shijiu.pojo;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.shijiu.vo.PageParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Author xlj
 * @Date Created in  2023/3/18 14:30
 * @DESCRIPTION:
 * @Version V1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment  {

    @TableId(type = IdType.AUTO)
    @NotNull(message = "id不能为空")
    private Integer id;

    @ApiModelProperty("商家id")
    private Integer shopId;

    @ApiModelProperty("评论人名字")
    private String name;

    @ApiModelProperty("评论内容")
    private String content;

    @ApiModelProperty("回复内容")
    private String reply;

    @ApiModelProperty("店主是否已回复")
    private Boolean isReply;

    @ApiModelProperty("0: 审核中 1:审核成功 2: 审核失败")
    private String status;

    @ApiModelProperty("创建时间（数据库自动生成，无需手动赋值）")
    @TableField(insertStrategy = FieldStrategy.NEVER)
    private String createDate;

    @TableField(updateStrategy = FieldStrategy.NEVER)
    @ApiModelProperty("修改时间（数据库自动生成，无需手动赋值）")
    private String replyDate;





}
